import * as Cesium from 'cesium';
const { defaultValue, Pass } = Cesium;
//@ts-ignore
export class FrustumCommandsGaussianSplatting extends Cesium.FrustumCommands {
    constructor(near: any, far: any) {
        super(near, far);
        //@ts-ignore
        this.near = defaultValue(near, 0.0);
        //@ts-ignore
        this.far = defaultValue(far, 0.0);
        // Pass.NUMBER_OF_PASSES原始是11，增加高斯泼溅模型后加1，原Pass只读无法修改
        // const numPasses = Pass.NUMBER_OF_PASSES + 1;
        const numPasses = 12;
        const commands = new Array(numPasses);
        const indices = new Array(numPasses);

        for (let i = 0; i < numPasses; ++i) {
            commands[i] = [];
            indices[i] = 0;
        }
        //@ts-ignore
        this.commands = commands;
        //@ts-ignore
        this.indices = indices;
    }
}